﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace FortuneHeaven.Web
{
    public partial class GameRule : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                //http://220.241.42.205/Download.asp?KindID=%ld&LocalVersion=0&PlazaVersion=%ld
                string kindid = Request.QueryString["kindid"];
                if (!string.IsNullOrEmpty(kindid))
                {
                    
                    string url = Page.ResolveUrl("~/introduce/") + kindid.Trim() + ".html";
                    
                    if (System.IO.File.Exists(Server.MapPath(url)))
                    {
                        Response.Redirect(url);
                    }
                    else
                    {
                        Response.Write("没有该游戏介绍!");
                        Response.End();
                    }

                }
            }
        }
    }
}